package me.jessyan.armscomponent.app.mvp.ui.adapter;

import android.view.View;

import androidx.annotation.NonNull;

import com.jess.arms.base.BaseHolder;
import com.jess.arms.base.DefaultAdapter;

import java.util.List;

import me.jessyan.armscomponent.app.R;
import me.jessyan.armscomponent.app.mvp.model.entity.allClass;
import me.jessyan.armscomponent.app.mvp.ui.holder.ClassItemHolder;

public class ClassAdapter extends DefaultAdapter<allClass> {
    public ClassAdapter(List<allClass> infos) {
        super(infos);
    }

    @NonNull
    @Override
    public BaseHolder<allClass> getHolder(@NonNull View v, int viewType) {
        return new ClassItemHolder(v);
    }

    @Override
    public int getLayoutId(int viewType) {
        return R.layout.layout_list_item4;
    }
}
